<div class="actions">
	<ul>
		<li><?php echo $html->link('Sửa', array('action' => 'edit', $canbo['Canbo']['id'])); ?> </li>
		<?php 
		if($admin){ ?>
			<li><?php echo $html->link('Xóa', array('action' => 'delete', $canbo['Canbo']['id']), null, sprintf(__('Bạn có chắc muốn xóa # %s?', true), $canbo['Canbo']['id'])); ?> </li>
		
			<li><?php echo $html->link('Thêm', array('action' => 'add')); ?> </li>
			<br>
			<li><?php echo $html->link('Danh sách cán bộ', array('action' => 'index')); ?> </li>
			
			<li> 
		<?php 
		}	
		
		echo $html->link('Thông tin tài khoản', array('controller' => 'users', 'action' => 'view', $userid)); 
		?> </li>
		
	</ul>
</div>
<div class="canbos view">
<?php
	$this->pageTitle = 'Thong Tin Can Bo';
	$admin = ($curUser['User']['ROLE'] == 'admin')? true: false;
?>
<h2><?php  echo 'Thông tin Cán Bộ';?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<!--dt<?php if ($i % 2 == 0) echo $class;?>><?php 'STT'; ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $canbo['Canbo']['id']; ?>
			&nbsp;
		</dd-->
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo 'Họ tên'; ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $canbo['Canbo']['HOTEN']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo 'Trạm BVTV'; ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $canbo['Trambvtv']['TEN_TR']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo 'Ngày sinh'; ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $canbo['Canbo']['NGAYSINH']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo 'Phái'; ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $canbo['Canbo']['PHAI']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
